/**
 * @project_name staff_vehicle
 * @package_name com.ssh.dao
 * @desc TODO
 * @param
 * @author jack
 * @date 2013-4-25
 * @time 上午7:00:15
 */
package com.ssh.dao;

import java.util.List;

import com.ssh.entity.FcarAplly;
import com.ssh.model.pdata.FInOutApplyMPData;

/**
 * @author jack
 *
 */
public interface FcarApllyDAOI {

	public FcarAplly queryById(String id);
	public int deleteByobject(FcarAplly fcarAplly);
	public FcarAplly updateByObject(FcarAplly fcarAplly);
	public int deleteById(String id);
	public FcarAplly addFcarAplly(FcarAplly fcarAplly);
	public int addFcarApllyList(List<FcarAplly> fcarApllyList);
	public List<FcarAplly> queryBackList(String strings);
	public int countById(String id);

	public List<FInOutApplyMPData> queryFInOutApply(String driverId);
	public List<FInOutApplyMPData> getFInOutApplyByState(short state);
	public List<FInOutApplyMPData> getAllFInOutApply();
	
	public FInOutApplyMPData getFVehicleInVData(String driverId);
	public FcarAplly findByCidAndRid(int id);
	public void save(FcarAplly app);
	/**
	 * @param driverId
	 * @param state
	 * @return
	 */
	public FInOutApplyMPData getFVehicleInOutData(String driverId, String state);
}
